package org.mog.album.mapper;

import entity.pojo.Album;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AlbumMapper {
    /**
     * 根据id查询专辑
     *
     * @param id
     * @return
     */
    Album getById(String id);

    /**
     * 新增专辑
     *
     * @param album
     */
    @Insert("insert into t_album (id, name,cover) values (#{id}, #{name}, #{cover})")
    void insert(Album album);
}
